﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//A convenient and trivial routing service that could be used for testing.
//Go ahead and see what happens when a CachedRoutingService is generated from this.
namespace SmartRoute.Data
{
    public sealed class Teleporter: IRoutingService
    {
        public Teleporter() { }

        public Route FromTo(Location a, Location b)
        {
            System.Console.WriteLine("A one-way-teleporter opened from {0} to {1}. This should only happen if you're debugging.", a, b);
            return new Route(this, a, b, TimeSpan.Zero, 0, new Location[0], "");
        }
    }
}
